import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/boss_Salary_vue/user/login',
    method: 'post',
    data
  })
}
export function tokenLogin(data) {
  return request({
    url: '/boss_Salary_vue/user/tokenLogin',
    method: 'post',
    data
  })
}
//git上传测试0111
export function getInfo(token) {
  return request({
    url: '/boss_Salary_vue/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout(data) {
  return request({
    url: '/boss_Salary_vue/user/logout',
    method: 'post',
    data
  })
}
